/**
 * 图标组件
 */
import React from 'react';
import { Icon } from 'antd';
import fontawesome from '@fortawesome/fontawesome';
import FontAwesomeIcon from '@fortawesome/react-fontawesome';
import faBrands from '@fortawesome/fontawesome-free-brands';
import faFree from '@fortawesome/fontawesome-free-solid';

fontawesome.library.add(faBrands, faFree);

export default class UIIcon extends React.Component {

    render() {
        return (
            <Icon><FontAwesomeIcon {...this.props} /></Icon>
        );
    }
}
